const routes = [
    {
        path: '/', component: () => import("../view/Login.vue")
    },
    {
        path: '/login', component: () => import("../view/Login.vue")
    },
    {
        path: '/index',
        name: 'index',
        redirect: '/index/1-1',
        component: () => import("../view/Index.vue"),
        children: [
            {
                path: '/index/:name',
                name: 'table',
                component: () => import("../components/Table.vue"),
            },
            {
                path: '/index/report/:id',
                name: 'report',
                component: () => import("../components/Report.vue"),
            },
            {
                path: '/index/eva',
                name: 'eva',
                component: () => import("../components/Eva.vue"),
            },
            {
                path: '/index/analysis/:aid',
                name: 'analysis',
                component: () => import("../components/analysis.vue"),
            },
            {
                path: '/index/graph/:gid',
                name: 'graph',
                component: () => import("../components/graph.vue"),
            }
        ]
    },

]


export default routes